package com.jj.message;

import com.alibaba.fastjson.JSON;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.LinkedList;

public class Result<T> {
    private static Logger logger = LoggerFactory.getLogger(Result.class);

    private Integer code;
    private T value;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public T getValue() {
        return value;
    }

    public void setValue(T value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "Result{" +
                "code=" + code +
                ", value=" + value +
                '}';
    }
}
